// 点击分享 app 跳转到对应的h5页面 h5页面再跳转到app  详情见shareh5文件夹
const shareFuc = () => {
	console.log("去分享")

	// const title = user.userInfo.nickName || '迈货用户',
	// 	summary = good.name || '迈货商品',
	// 	imageUrl = good.goodsImg;

	const title = 'jjj'
	const summary = 'lll'
	const imageUrl ='https://www.w3school.com.cn/example/html5/mov_bbb.mp4'

	// uni.share({
	// 	provider: "weixin",
	// 	scene: "WXSceneSession",
	// 	type: 0,
	// 	href: "http://uniapp.dcloud.io/",
	// 	title: "uni-app分享",
	// 	summary: "我正在使用HBuilderX开发uni-app，赶紧跟我一起来体验！",
	// 	imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
	// 	success: function (res) {
	// 		console.log("success:" + JSON.stringify(res));
	// 	},
	// 	fail: function (err) {
	// 		console.log("fail:" + JSON.stringify(err));
	// 	}
	// });
	
	uni.share({
		provider: "weixin",
		scene: "WXSceneTimeline",
		type: 0,
		href: "http://uniapp.dcloud.io/",
		title: "uni-app分享",
		summary: "我正在使用HBuilderX开发uni-app，赶紧跟我一起来体验！",
		imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
		success: function (res) {
			console.log("success:" + JSON.stringify(res));
		},
		fail: function (err) {
			console.log("fail:" + JSON.stringify(err));
			uni.showToast({
				title:err.errMsg,
				icon:'none'
			})
		}
	});
}

export default shareFuc